package coc.example.config;

import java.io.InputStream;

import org.springframework.stereotype.Service;

import com.thoughtworks.xstream.XStream;

@Service
public class CrawlerDefinedManager {
	private XStream xstream = new XStream();

	public CrawlerDefined getCrawlerDefined(InputStream in) {
		xstream.processAnnotations(new Class[] { CrawlerDefined.class });
		return (CrawlerDefined) xstream.fromXML(in);
	}
}
